﻿using System.Runtime.Serialization;

namespace Entities.DataBase.Obj {

    [DataContract]
    public class SettingKey {
        
        public readonly static SettingKey Rate     = new SettingKey("CurrencyRate", "计算汇率");
        public readonly static SettingKey Balance  = new SettingKey("Balance", "账户余额");
        public readonly static SettingKey RealRate = new SettingKey("RealCurrencyRate", "实时汇率");

        [DataMember]
        public string Name  { get; set; }

        [DataMember]
        public string CName { get; set; }

        public SettingKey(string name, string cname) {
            Name  = name;
            CName = cname;
        }

    }
}